// 存储键常量
export const STORAGE_KEYS = {
    AUTH: 'kiki_auth',
    PTOKEN: 'kiki_ptoken',
    ACCOUNT_ID: 'whatsapp_account_id',
    FOLLOW_STATUS: 'kiki_follow_status',
    CHAT_CACHE: 'kiki_chat_cache',
    CHAT_TITLE_MAP: 'kiki_chat_title_map',
    LAST_MANAGER: 'kiki_last_manager',
    CHAT_MESSAGE_COUNT: 'kiki_chat_message_count',
    MESSAGE_COUNTS: 'kiki_message_counts',
    PROMPTS: 'kiki_prompts',
    SOP_TREE_CACHE: 'kiki_sop_tree_cache',
    SOP_MESSAGES: 'kiki_sop_messages'
};

// URL 配置常量
export const URL_CONFIG = {
    ERP_BASE_URL: 'https://erp.lianf.com',
    TOOLS_BASE_URL: 'https://tools.kikimami.com'
};

// 聊天订单数据存储键前缀
export const STORAGE_KEY_PREFIX = 'kiki_chat_order_';

// Cookie 名称常量
export const COOKIE_NAMES = {
    AUTH_TOKEN: 'Admin-Token',
    PROJECT_TOKEN: 'cms_project_id__search'
};

// 选择器常量
export const SELECTORS = {
    // 主要容器选择器
    MAIN_CONTAINER: '#main',
    MAIN_HEADER: '#main header',
    MAIN_HEADER_TITLE: '#main header span[title]',
    
    // 编辑器相关选择器
    RICH_TEXT_INPUT: '#main div[class*="lexical-rich-text-input"]',
    CONTENT_EDITABLE: '[contenteditable="true"]',
    EDITOR_CONTAINER: 'div[class*="lexical-rich-text-input"]',
    
    // 按钮相关选择器
    SEND_BUTTON: 'button[aria-label="发送"]',
    FORMAT_TOOLBAR: 'button span[data-icon="block-quote"]',
    BLOCK_QUOTE_BUTTON: 'button span[data-icon="block-quote"]',
    
    // 聊天列表相关选择器
    CHAT_LIST_CONTAINER: 'div[aria-label="对话列表"][role="grid"]',
    CHAT_LIST_ITEM: 'div[role="listitem"]',
    CHAT_LIST_ITEM_CONTENT: 'div[aria-selected]',
    CHAT_LIST_ITEM_IMAGE: 'img._ao3e',
    CHAT_LIST_ITEM_TITLE: 'span[title]._ao3e',
    CHAT_TIME_CONTAINER: '._ak8i',
    
    // 自定义元素选择器
    KIKI_BUTTON_CONTAINER: '.kiki-button-container',
    KIKI_TRANSLATE_WRAP: '.kiki-translate-wrap',
    KIKI_TRANSLATE_DRAWER: '.kiki-translate-drawer',
    KIKI_STATUS_SELECTOR: '[data-kiki-status-selector="true"]',
    KIKI_TRANSLATE_ICON: '.translate-icon',
    KIKI_LOADING_SPINNER: '.loading-spinner',
    KIKI_STATUS_LABEL: '.kiki-status-label',
    KIKI_TOAST: '.kiki-toast',
    KIKI_DIALOG: '.kiki-dialog',
    KIKI_DIALOG_OVERLAY: '.kiki-dialog-overlay',
    KIKI_FORM: '.kiki-form',
    
    // WhatsApp特定元素选择器
    WHATSAPP_SEND_BUTTON: 'button[aria-label="发送"]',
    WHATSAPP_HEADER: 'header._amid',
    WHATSAPP_TITLE_SPAN: 'header._amid span[title]'
};
